<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="div" id="all">
 <div class="all" id="allTopDiv" >
	<%@include file="common/top.jsp"%>
 </div> 
  <div class="all" id="allmain">
    <div class="allmain" id="allmainDivTop">
      <div class="all" id="allmainDivTopClose"></div>
      <div class="allmainDivTop" id="allmainDivTopDiv">	  
		<%@include file="common/bar.jsp"%>
	  </div>
    </div>
	
    <div class="allmain" id="allmainLeft"> 
 	<c:forEach var="each" items="${publishingCampaign}" varStatus="s">
	<c:if test="${s.count < 7 }">	
      <div class="allmainLeft" id="allmainLeftDiv">
        <div class="allmainLeftDiv" id="LeftTop" style="background-image:url(images/class${s.count}.jpg)"><img src="images/new1.gif" style="width:50px; height:30px; display:none " border="0" /></div>
        <div class="allmainLeftDiv" id="LeftMain">
          <div class="allmainLeftDiv" id="ClassTitle"><a href="${each.lesson.detailInfo}" target="_blank" style="color:#000000">${each.lesson.name }   招生简章<img src="images/15.gif" style="width:25px; height:25px" border="0" /></a></a></div>
          <div class="allmainLeftDiv" id="ClassButton">
            <div class="allmainLeftDiv" id="ClassButtonSelect"> 
			<c:if test="${flag == 'new'}"> 
			 <form id="form3" name="form3" method="post" action="apply.do?campaignId=${each.id}">                
                <input type="submit" name="allmainLeftDiv" id="allmainLeftDiv2" value="马上报名" 
                  style="background:none; border:none; width:80px; height:30px;
                   font:宋体; font-size:16px; color:#FFF; font-weight:bold" />
              </form>
			</c:if>				
			<c:if test="${flag == 'old'}"> <input type="submit" name="allmainLeftDiv" id="allmainLeftDiv2" value="已结束" 
                  style="background:none; border:none; width:80px; height:30px;
                   font:宋体; font-size:16px; color:#FFF; font-weight:bold" /> 
			</c:if>
             
            </div>          
          </div>
          <div class="allmainLeftDiv" id="ClassPrice">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" id="ClassPrice">
              <tr>
                <td width="30%" align="left" ><strong>原价</strong></td>
                <td align="left">${each.lesson.cost}元</td>
              </tr>
              <tr>
                <td width="30%" align="left" ><strong>优惠</strong></td>
                <td align="left"><strong><font color="#FF0000" size="5">${each.discountComments}</font></strong></td>
              </tr>
            </table>
          </div>
        </div>
        <div class="allmainLeftDiv" id="ClassDay"><strong>开班日期:</strong> ${each.endDate}&nbsp;&nbsp;</div>
        <div class="allmainLeftDiv" id="ClassPerson"><strong>招生人数:</strong>${each.maxNumber }</div>
      </div>
	  </c:if>
     </c:forEach>  
    </div> 
	  
    <div class="allmain" id="allmainRight">
   		<%@include file="common/right.jsp"%>
    </div>
  </div>
  <div class="all" id="allfooter">
    <%@include file="common/footer.jsp"%>
  </div>
</div>
</body>
</html>
